package org.jmh.gift.fallback;

import org.jmh.gift.client.GiftClient;
import org.jmh.gift.enums.SystemErrorCode;
import org.jmh.gift.util.AjaxResult;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.Set;

@Component
public class GiftClientFallback implements GiftClient {
    @Override
    public AjaxResult get(Long id) {
        return AjaxResult.error(SystemErrorCode.RESPONSE_CODE_500);
    }

    @Override
    public AjaxResult getSkuByIds(Set<Long> skuIds) {
        return AjaxResult.error(SystemErrorCode.RESPONSE_CODE_500);
    }

    @Override
    public AjaxResult subLockStock(Map<Long, Integer> skuInfos) {
        return AjaxResult.error(SystemErrorCode.RESPONSE_CODE_500);
    }
}
